package com.csu.tour.controller;
import com.csu.tour.entity.HotelInfo;
import com.csu.tour.service.NonstarInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class NonstarInfoController {

    @Autowired
    private NonstarInfoService nonstarInfoService;


    @PostMapping("/nonstarInfos")
    public void addNonstarInfo(@RequestBody HotelInfo nonstarInfo) {
        nonstarInfoService.addNonstarInfo(nonstarInfo);
    }
}